package com.qf.dao;

import com.qf.entitys.Coupon;
import org.apache.ibatis.annotations.Param;

import java.util.List;

import java.util.List;

public interface CouponMapper {
    int deleteByPrimaryKey(Integer couponId);

    int insert(Coupon record);

    int insertSelective(Coupon record);

    Coupon selectByPrimaryKey(Integer couponId);

    int updateByPrimaryKeySelective(Coupon record);

    int updateByPrimaryKey(Coupon record);

    List<Coupon> selectAllByBid(Integer bid);

    List<Coupon> selectAllByBidCoupons(Integer id);

    List<Coupon> selectAllByBidCouponsAndName(@Param("id") Integer id,@Param("name") String name);

    List<Coupon> selectByByBidAndUserId(@Param(value = "bid") Integer bid,@Param(value = "userid") Integer userid);
}